import service from '@/utils/request'


export const getRights = (params) => {
    return service({
        url: '/roleMenu/page',
        method: 'get',
        params
    })
}


export const delRights = (params) => {
    return service({
        url: `/roleMenu/delete/${params}`,
        method: 'delete',
    })
}
export const editRights = (data) => {
    return service({
        url: '/roleMenu/edit',
        method: 'put',
        data
    })
}
